//
//  TableSection.h
//  Portable Traffic Signal Assistor
//
//  Created by Hao Xu on 3/31/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import <Foundation/Foundation.h>
#define CONST_Cell_height 40
#define CONST_section_header_height 40
#define CONST_textLabelFontSize     16
#define CONST_detailLabelFontSize   20
#define CONST_portraitCellWidth 300
#define CONST_landCellWidth 500
#define CONST_popViewStandardWidth 400
#define CONST_popViewItemHeight 85
#define CONST_portraitIndex 32




@interface TableSection : NSObject
{
    NSMutableArray *_contents;
    NSString *_header;
    NSString *_footer;
    UITableViewCellAccessoryType *_accessoryType;
}

@property (nonatomic,retain) NSMutableArray *contents;
@property (nonatomic,retain) NSString *header;
@property (nonatomic,retain) NSString *footer;
@property (nonatomic) UITableViewCellAccessoryType *accessoryType;

+ (UIFont *) TitleFont;

+ (CGFloat) calculateStringHeight:(NSString *)content;

+ (CGFloat) calculatePopoverHeight:(NSArray *)listSections;

+ (UIColor *) WhiteColor;

+ (UIColor *) SelectionButtonBackground;

+ (UIColor *) SelectionButtonBackgroundSmall;


@end
